package com.shenfa.bean.bill.stencil;

/**
 * 模版个性化区域字典映射类
 * 
 * @author 龙辰三
 * @date 2011-8-23
 * 
 */
public class StencilArea {

	private int areano; // 个性化区域编号
	private String areaname; // 个性化区域名称
	private String stencilno; // 模版编号
	private int stencilversion;// 模板版本号
	private char areatypeno; // 区域类型编号
	private String arearemark; // 区域备注

	public StencilArea() {
		super();
	}

	public StencilArea(int areano, String areaname, String stencilno,
			int stencilversion, char areatypeno, String arearemark) {
		super();
		this.areano = areano;
		this.areaname = areaname;
		this.stencilno = stencilno;
		this.stencilversion = stencilversion;
		this.areatypeno = areatypeno;
		this.arearemark = arearemark;
	}

	public int getAreano() {
		return areano;
	}

	public void setAreano(int areano) {
		this.areano = areano;
	}

	public String getAreaname() {
		return areaname;
	}

	public void setAreaname(String areaname) {
		this.areaname = areaname;
	}

	public String getStencilno() {
		return stencilno;
	}

	public void setStencilno(String stencilno) {
		this.stencilno = stencilno;
	}

	public int getStencilversion() {
		return stencilversion;
	}

	public void setStencilversion(int stencilversion) {
		this.stencilversion = stencilversion;
	}

	public char getAreatypeno() {
		return areatypeno;
	}

	public void setAreatypeno(char areatypeno) {
		this.areatypeno = areatypeno;
	}

	public String getArearemark() {
		return arearemark;
	}

	public void setArearemark(String arearemark) {
		this.arearemark = arearemark;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((areaname == null) ? 0 : areaname.hashCode());
		result = prime * result + areano;
		result = prime * result
				+ ((arearemark == null) ? 0 : arearemark.hashCode());
		result = prime * result + areatypeno;
		result = prime * result
				+ ((stencilno == null) ? 0 : stencilno.hashCode());
		result = prime * result + stencilversion;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		StencilArea other = (StencilArea) obj;
		if (areaname == null) {
			if (other.areaname != null)
				return false;
		} else if (!areaname.equals(other.areaname))
			return false;
		if (areano != other.areano)
			return false;
		if (arearemark == null) {
			if (other.arearemark != null)
				return false;
		} else if (!arearemark.equals(other.arearemark))
			return false;
		if (areatypeno != other.areatypeno)
			return false;
		if (stencilno == null) {
			if (other.stencilno != null)
				return false;
		} else if (!stencilno.equals(other.stencilno))
			return false;
		if (stencilversion != other.stencilversion)
			return false;
		return true;
	}

}
